package com.seckill.product.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.seckill.product.util.poi.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 
 * 
 * @author zhuxz
 * @email sunlightcs@gmail.com
 * @date 2022-06-19 09:38:15
 */
@Data
@TableName("order_surface")
//@NoArgsConstructor
//@AllArgsConstructor
@EqualsAndHashCode
public class OrderSurfaceEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	@ExcelIgnore
	private Integer id;
	/**
	 * 订单号
	 */
	//@Excel(name = "订单号")
	@ExcelProperty("订单号")
	private String dno;
	/**
	 * 收货人
	 */
	//@Excel(name = "收货人")
	@ExcelProperty("收货人")
	private String consignee;
	/**
	 * 支付状态
	 */
	//@Excel(name = "支付状态")
	@ExcelProperty("支付状态")
	private String status1;
	/**
	 * 发货状态
	 */
	@ExcelIgnore
	private String status2;
	/**
	 * 支付方式
	 */
	@ExcelIgnore
	private String payment;
	/**
	 * 用户名
	 */
	//@Excel(name = "用户名")
	@ExcelProperty("用户名")
	private String uname;
	/**
	 * 下单时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	//@Excel(name = "下单时间")
	@ExcelProperty("下单时间")
	private Date createTime;

}
